<!-- 导航URL -->
<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-md-12">
        <ol class="breadcrumb">
            <li><a>主页</a></li>
            <li><a>账户资金损失险</a></li>
            <li class="active"><strong>交易预警</strong></li>
        </ol>
    </div>
</div>
<style type="text/css">
    .inputStyleMy {
        width:100px;margin:2px 0px 2px 0px;display:inline;
    }
    .textStyleMy {
        margin:7px 10px 7px 10px;display:inline;
    }
    .selectStyleMy {
        width:80px;margin:2px 0px 2px 0px;display:inline;
    }
</style>

<!-- 主要内容 -->
<div class="wrapper wrapper-content animated fadeIn" ng-app
     ng-controller="tradeWarningSafeCtrl">
    <form class="form-horizontal" id="form1" name="horizontal" novalidate>
        <div class="row">
            <div class="col-lg-12">
                <div class="tabs-container tab_other">
                    <div class="panel-body ibox float-e-margins">
                        <!--交易错误预警-->
                        <div class="ibox-content">
                            <div class="form-group">
                                <h5 style="font-size:14px;">保险订单交易预警</h5>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">资金损失险交易订单预警:</label>
                                <div class="col-sm-10 checkbox" ng-bind="info.content">
                                </div>
                            </div>
                            <!--预警阀值设置 -->
                            <div class="form-group">
                                <label class="col-sm-2 control-label"><i class="red_req">*</i>预警阀值设置:</label>
                                <div class="col-sm-10">
                                    <input type="text" class="inputStyleMy form-control" ng-model="tradeWarningMap.failOrder.minute" ng-pattern="/^(0|[1-9][0-9]*)$/" required>
                                    <span class="textStyleMy">分钟内，</span>
                                    <select class="selectStyleMy form-control" ng-model="tradeWarningMap.failOrder.countType" ng-options="x.value as x.text for x in typeList" required/>
                                    <span class="textStyleMy">投保失败订单数</span>
                                    <input type="text" class="inputStyleMy form-control" ng-model="tradeWarningMap.failOrder.num" ng-pattern="/^(0|[1-9][0-9]*)$/" required>
                                    <span class="textStyleMy">条</span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label"></label>
                                <div class="col-sm-10" style="float:left">
                                    <input type="text" class="inputStyleMy form-control" ng-model="tradeWarningMap.timeoutOrder.minute" ng-pattern="/^(0|[1-9][0-9]*)$/" required>
                                    <span class="textStyleMy">分钟内，</span>
                                    <select class="selectStyleMy form-control" ng-model="tradeWarningMap.timeoutOrder.countType" ng-options="x.value as x.text for x in typeList" required/>
                                    <span class="textStyleMy">等待上游通知超时订单数</span>
                                    <input type="text" class="inputStyleMy form-control" ng-model="tradeWarningMap.timeoutOrder.num" ng-pattern="/^(0|[1-9][0-9]*)$/" required>
                                    <span class="textStyleMy">条</span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label"><i class="red_req">*</i>预警缓冲时间设置:</label>
                                <div class="col-sm-10">
                                    <input type="text" class="inputStyleMy form-control" ng-model="info.cdTime" ng-pattern="/^(0|[1-9][0-9]*)$/" required>
                                    <span  class="textStyleMy">分钟</span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label"></label>
                                <div class="col-sm-10">
                                    <span style="color:#999999;">备注:触发预警后缓冲时间内不会发送短信,缓冲时间结束后重新记录预警事件</span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label"><i class="red_req">*</i>短信接收人:</label>
                                <div class="col-sm-10">
                                    <textarea style="width:400px;height:100px;" ng-model="info.phones" required></textarea>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label"></label>
                                <div class="col-sm-10" >
                                    <span style="color: #999999;">注:若需多人同时接收短信时,请用英文逗号隔开</span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-lg-12 bgff">
            <div class="col-sm-3"></div>
            <div class="col-sm-6">
                <button class="btn btn-new btn-mr20" style="width: 130px;" type="button"
                        ng-click="updatetradeWarning()" ng-disabled="horizontal.$invalid ||submitting" id="btnSubmit">保存</button>
                <a class="btn btn-primary4 btn-mr20" style="width: 130px;" type="button" ui-sref="safe.safeOrder">返回</a>
            </div>
        </div>
    </form>
</div>
